package com.example.portlocalforward.controller.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 端口本地转发搜索参数
 * 
 * @author Generated
 * @version 1.0.0
 */
@ApiModel(description = "端口本地转发搜索参数")
@Data
public class PortLocalForwardSearchParams {
    
    @ApiModelProperty(value = "转发名称（模糊搜索）", example = "k8s")
    private String name; // 转发名称
    
    @ApiModelProperty(value = "SSH隧道ID", example = "1")
    private Long sshTunnelId; // SSH隧道ID
    
    @ApiModelProperty(value = "本地端口", example = "9443")
    private Integer localPort; // 本地端口
    
    @ApiModelProperty(value = "远程目标主机（模糊搜索）", example = "10.10.22.57")
    private String remoteHost; // 远程主机
    
    @ApiModelProperty(value = "远程目标端口", example = "9443")
    private Integer remotePort; // 远程端口
    
    // 分页参数
    @ApiModelProperty(value = "页码（从0开始）", example = "0")
    private Integer page = 0;
    
    @ApiModelProperty(value = "每页大小", example = "10")
    private Integer size = 10;
    
    // 排序参数
    @ApiModelProperty(value = "排序字段", example = "createdTime")
    private String sortBy = "createdTime";
    
    @ApiModelProperty(value = "排序方向（asc/desc）", example = "desc")
    private String sortDirection = "desc";
}
